package test

import "github.com/kataras/iris/v12"

type myHeaders struct {
	RequestID      string `header:"X-Request-Id,required"`
	Authentication string `header:"Authentication,required"`
}
func ValidateHeader(ctx iris.Context)  {

	var hs myHeaders
	if err := ctx.ReadHeaders(&hs); err != nil {
		ctx.StopWithError(iris.StatusInternalServerError, err)
		return
	}

	ctx.JSON(hs)
}
